import React from 'react';
import cx from 'classnames';

import "./button.css";
const T = React.PropTypes;
export default class Button extends React.Component {
  static propTypes = {
    name: T.string,
    className: T.string,
    onClick: T.func,
    children: T.oneOfType([
      T.array, T.object, T.string
    ])
  };

  constructor(props) {
    super(props);
  }

  render() {
    let {className, children, ...props} = this.props;
    return (
      <button {...props} className={cx(className, 'comp-button')}>{children}</button>
    );
  }
}
